package com.situ.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@Schema(description = "订单统计信息")
public class OrderReportVO {
    @Schema(description = "x轴数据",implementation = String.class)
    private List<String> xData;
    @Schema(description = "y轴数据",implementation = Y.class)
    private List<Y> yData;

    public OrderReportVO() {
        this.xData = new ArrayList<>();
        this.yData = new ArrayList<Y>();
    }

    @Data
    @Schema(description = "y轴数据对象")
    @Builder
    public static class Y{
        @Schema(description = "名称")
        private String name;
        @Schema(description = "值")
        private Integer value;
    }
}
